package mirrormonkey.rpc.tools.singlecall.entities;

import mirrormonkey.rpc.annotations.InvokeLocally;
import mirrormonkey.rpc.annotations.InvokeLocally.LocalInvokeMode;
import mirrormonkey.rpc.annotations.RpcTarget;
import mirrormonkey.rpc.tools.singlecall.specs.Rotatable;

import com.jme3.math.Quaternion;
import com.jme3.math.Vector3f;

public class LocalInvokeRotatableBox extends RotatableBox implements Rotatable {

	public LocalInvokeRotatableBox(Vector3f pos) {
		super(pos);
	}

	@Override
	@InvokeLocally(LocalInvokeMode.AFTER)
	@RpcTarget(responseTimeout = 1f, reliable = false)
	public void setRotation(Quaternion rot) {
		setLocalRotation(rot);
	}

}
